<% form_for :user,:url=>{:action=>"login"} do |f|%>
邮件地址：<%= f.text_field(:email)%>
密码：<%= f.password_field(:password)%>
<%= f.submit("登录")%>
<%end%>

<%= link_to "注册",:action=>"register" %>
